package com.zhongkai.Bean;

import java.io.Serializable;
import java.util.Objects;

public class AnomalyBean implements Serializable {
    private Long id;
    private String setCard; //设备编号

    private String warCause; //异常原因
    private String userName; //用户姓名
    private String userPhone; //用户手机号
    private String address; //设备地址

    private String orders; //1-->已派单  2-->未派单 3-->已撤销
    private String getPeople; //接单人员姓名
    private String getUuid; ////接单人员UUid
    private String anoId; //订单id

    private String status; //设备状态 1 开机 2关机 3离线


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    public String getSetCard() {
        return setCard;
    }

    public void setSetCard(String setCard) {
        this.setCard = setCard;
    }




    public String getWarCause() {
        return warCause;
    }

    public void setWarCause(String warCause) {
        this.warCause = warCause;
    }


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }


    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }


    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }





    public String getOrders() {
        return orders;
    }

    public void setOrders(String orders) {
        this.orders = orders;
    }





    public String getGetPeople() {
        return getPeople;
    }

    public void setGetPeople(String getPeople) {
        this.getPeople = getPeople;
    }


    public String getGetUuid() {
        return getUuid;
    }

    public void setGetUuid(String getUuid) {
        this.getUuid = getUuid;
    }


    public String getAnoId() {
        return anoId;
    }

    public void setAnoId(String anoId) {
        this.anoId = anoId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AnomalyBean anomaly = (AnomalyBean) o;
        return Objects.equals(id, anomaly.id) &&
                Objects.equals(setCard, anomaly.setCard) &&
                Objects.equals(warCause, anomaly.warCause) &&
                Objects.equals(userName, anomaly.userName) &&
                Objects.equals(userPhone, anomaly.userPhone) &&
                Objects.equals(address, anomaly.address) &&
                Objects.equals(orders, anomaly.orders) &&
                Objects.equals(getPeople, anomaly.getPeople) &&
                Objects.equals(getUuid, anomaly.getUuid) &&
                Objects.equals(anoId, anomaly.anoId);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, setCard,  warCause, userName, userPhone, address,  orders,  getPeople, getUuid, anoId);
    }
}
